using System.Web.Optimization;

[assembly: WebActivatorEx.PostApplicationStartMethod(typeof(PhotoBlog.App_Start.BundleConfig), "RegisterBundles")]

namespace PhotoBlog.App_Start
{
    public class BundleConfig
    {
        public static void RegisterBundles()
        {
            BundleTable.Bundles.Add(new ScriptBundle("~/bundles/jquery")
                .Include("~/Scripts/jquery-{version}.js")
                .Include("~/Scripts/jquery.validate.js")
                .Include("~/Scripts/jquery.validate.unobtrustive.js")
                );

            BundleTable.Bundles.Add(new ScriptBundle("~/bundles/bootstrap")
                .Include("~/Scripts/bootstrap.js")
                .Include("~/Scripts/bootstrap-datepicker.js")
                );

            BundleTable.Bundles.Add(new ScriptBundle("~/bundles/knockout")
                .Include("~/Scripts/knockout-{version}.js")
                .Include("~/Scripts/knockout.mapping-latest.js")
                .Include("~/Scripts/knockout.custom.js")
                );

            BundleTable.Bundles.Add(new ScriptBundle("~/bundles/custom")
                .Include("~/Scripts/chosen.jquery.js")
                .Include("~/Scripts/scaffolding.js")
                .Include("~/Scripts/client/photo.blog.models.js")
                .Include("~/Scripts/client/photo.blog.api.js")
                .Include("~/Scripts/client/photo.blog.js")
                .Include("~/Scripts/holder.js")
                .Include("~/Scripts/spin.js")
                .Include("~/Scripts/default/main.js")
                );

            BundleTable.Bundles.Add(new StyleBundle("~/Content/bootstrap")
                .Include("~/Content/bootstrap.css")
                .Include("~/Content/bootstrap-datepicker.css")
                );

            BundleTable.Bundles.Add(new StyleBundle("~/Content/custom")
                .Include("~/Content/chosen.css")
                .Include("~/Content/PagedList.css")
                .Include("~/Content/scaffolding.css")
                .Include("~/Content/main.style.css")
                .Include("~/Content/main.css")
                );
        }
    }
}
